onEvent('recipes', (event) => {
    const recipes = [
        {
            output: 'elementalcraft:containedcrystal',
            pattern: [' A ', 'ABA', ' A '],
            key: {
                A: 'elementalcraft:inertcrystal',
                B: 'psi:psidust'
            },
        },
        {
            output: 'elementalcraft:evaporator',
            pattern: ['ABA', 'BCB', 'ABA'],
            key: {
                A: 'astralsorcery:black_marble_pillar',
                B: 'elementalcraft:containedcrystal',
                C: 'kubejs:starmetal_frame'
            },
        },
        {
            output: 'elementalcraft:infuser',
            pattern: ['A A', ' C ', 'A A'],
            key: {
                A: 'astralsorcery:black_marble_pillar',
                C: 'astralsorcery:glass_lens'
            },
        },
        {
            output: 'waterstrainer:obsidian_mesh',
            pattern: ['BAB', 'ACA', 'BAB'],
            key: {
                A: 'waterstrainer:iron_mesh',
                B: 'psi:psimetal',
                C: 'kubejs:party_2_ingot'
            },
        },
        {
            output: 'evilcraft:blood_infusion_core',
            pattern: ['BAB', 'ACA', 'BAB'],
            key: {
                A: 'evilcraft:hardened_blood_shard',
                B: 'evilcraft:vengeance_essence_materialized',
                C: 'minecraft:nether_star'
            },
        },
        {
            output: 'bloodmagic:alchemytable',
            pattern: ['   ', 'ABC', 'DDD'],
            key: {
                A: 'evilcraft:dark_spike',
                D: 'evilcraft:dark_brick',
                B: 'evilcraft:promise_acceptor_iron',
                C: Item.of('forbidden_arcanus:blood_test_tube', '{Blood:3000}')
            },
        },
        {
            output: '2x thermal:machine_frame',
            pattern: ['ABA', 'DED', 'ABA'],
            key: {
                A: 'elementalcraft:whiterock',
                B: 'kubejs:party_2_ingot',
                D: 'elementalcraft:burnt_glass',
                E: Item.of('elementalcraft:rune', '{elementalcraft:{rune:"elementalcraft:fus"}}')
            }

        },
        {
            output: '2x thermal:machine_frame',
            pattern: ['ABA', 'DED', 'ABA'],
            key: {
                A: 'elementalcraft:whiterock',
                B: 'kubejs:party_2_ingot',
                D: 'elementalcraft:burnt_glass',
                E: 'kubejs:fus'
            }

        },
        {
            output: 'rftoolsutility:crafter1',
            pattern: [' B ', 'CDC', ' B '],
            key: {
                C: 'minecraft:crafting_table',
                B: 'elementalcraft:containedcrystal',
                D: 'projectred-expansion:auto_crafter'
            }

        },
        {
            output: '4x forbidden_arcanus:arcane_polished_darkstone',
            pattern: ['AAA', 'ABA', 'AAA'],
            key: {
                A: 'forbidden_arcanus:polished_darkstone',
                B: 'kubejs:party_2_ingot',
            }

        },
        {
            output: 'forbidden_arcanus:arcane_crystal_obelisk',
            pattern: [' A ', ' A ', ' B '],
            key: {
                A: 'quark:white_crystal',
                B: 'forbidden_arcanus:darkstone_pedestal',
            }
        },
        {
            output: Item.of('custommachinery:custom_machine_item', '{machine:"custommachinery:flame_furnace"}'),
            pattern: ['AAA', 'BCB', 'AAA'],
            key: {
                A: 'astralsorcery:marble_bricks',
                B: 'psi:psimetal',
                C: 'rftoolsbase:machine_frame'
            }
        },
        {
            output: 'forbidden_arcanus:utrem_jar',
            pattern: ['ABA', 'ACA', 'AAA'],
            key: {
                A: 'minecraft:glass',
                C: 'astralsorcery:glass_lens',
                B: 'astralsorcery:spectral_relay',
            }
        },
        {
            output: 'forbidden_arcanus:pixie',
            pattern: ['A A', 'CDC', 'A A'],
            key: {
                A: 'minecraft:feather',
                D: 'evilcraft:blood_orb_filled',
                C: 'evilcraft:vengeance_essence_materialized'
            }
        },
        {
            output: 'botania:elven_spreader',
            pattern: ['AAA', 'BDC', 'AAA'],
            key: {
                A: 'kubejs:magicinfused_alumicube',
                B: 'botania:mana_detector',
                C: 'botania:pixie_dust',
                D: 'kubejs:item_24'
            }
        },
        {
            output: 'huahuamagicconverter:elementtomana_block',
            pattern: ['AAA', 'BDC', 'AAA'],
            key: {
                A: 'botania:livingrock',
                B: 'elementalcraft:tank',
                D: 'kubejs:item_22',
                C: 'botania:mana_detector'
            }
        },
        {
            output: 'elementalcraft:chisel',
            pattern: [' AB', ' CA', 'D  '],
            key: {
                A: 'elementalcraft:swift_alloy_ingot',
                B: 'elementalcraft:air_silk',
                C: 'elementalcraft:earthcrystal',
                D: 'minecraft:blaze_rod'
            }
        },
        {
            output: 'huahuamagicconverter:aireletobloodwill_block',
            pattern: ['ACA', 'BED', 'AAA'],
            key: {
                A: 'kubejs:magicinfused_alumicube',
                B: 'bloodmagic:soulforge',
                C: 'kubejs:item_22',
                D: 'elementalcraft:tank',
                E: 'forbidden_arcanus:runic_tenebris_frame'
            }

        },
        {
            output: 'botania:mana_fluxfield',
            pattern: ['ABA', 'DCD', 'ABA'],
            key: {
                A: 'botania:livingrock',
                B: 'minecraft:redstone_block',
                C: 'botania:mana_detector',
                D: 'thermal:machine_frame'
            }
        },
        {
            output: '3x refinedstorage:construction_core',
            pattern: [' A ', 'CDC', ' A '],
            key: {
                A: 'tconstruct:slimesteel_ingot',
                C: 'refinedstorage:advanced_processor',
                D: 'botania:rune_water'
            }
        },
        {
            output: '3x refinedstorage:destruction_core',
            pattern: [' A ', 'CDC', ' A '],
            key: {
                A: 'emendatusenigmatica:signalum_ingot',
                C: 'refinedstorage:improved_processor',
                D: 'botania:rune_fire'
            }
        },
        {
            output: 'refinedstorage:construction_core',
            pattern: [' A ', 'CDC', ' A '],
            key: {
                A: 'tconstruct:slimesteel_ingot',
                C: 'refinedstorage:advanced_processor',
                D: 'kubejs:fus'
            }
        },
        {
            output: 'refinedstorage:destruction_core',
            pattern: [' A ', 'CDC', ' A '],
            key: {
                A: 'emendatusenigmatica:signalum_ingot',
                C: 'refinedstorage:improved_processor',
                D: 'kubejs:item_22'
            }
        },
        {
            output: 'bettermuffling:muffling_block',
            pattern: ['AAA', 'ABA', 'AAA'],
            key: {
                A: '#minecraft:wool',
                B: 'kubejs:party_1_ingot'
            }
        },
        {
            "pattern": [
                "AAA",
                "ABA",
                "AAA"
            ],
            "key": {
                "A": {
                    "item": 'tconstruct:scorched_brick'
                },
                "B": {
                    "item": "minecraft:crafting_table"
                }
            },
            output: 'eidolon:worktable'
        },
        {
            output: Item.of('custommachinery:custom_machine_item', '{machine:"custommachinery:celestial_collector"}'),
            "pattern": [
                "ABA",
                "CDC",
                "AEA"
            ],
            "key": {
                "A": {
                    "item": "tconstruct:scorched_brick"
                },
                "B": {
                    "item": "botania:terra_plate"
                },
                "C": {
                    "item": "kubejs:paper_5"
                },
                "D": {
                    "item": "thermal:machine_frame"
                },
                "E": {
                    "item": "botania:terrasteel_block"
                }
            },
        }






    ]
    recipes.forEach((recipe) => {
        event.shaped(recipe.output, recipe.pattern, recipe.key);
    });


    event.replaceInput({ mod: 'elementalcraft' }, 'minecraft:iron_ingot', 'emendatusenigmatica:electrum_ingot');
})